﻿namespace MsForgeReboot.Framework.Entities {
    #region Usings

    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;

    #endregion

    public class Role {

        public Role() {
            this.Users = new List<User>();
        }

        #region Public Properties

        /// <summary>
        ///   Gets or sets the description.
        /// </summary>
        /// <value> The description. </value>
        //[MaxLength(500)]
        //public string Description { get; set; }

        /// <summary>
        ///   Gets or sets the id.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        ///   Gets or sets the members.
        /// </summary>
        /// <value> The members. </value>
        //public virtual IList<Participants> Members { get; set; }

        /// <summary>
        ///   Gets or sets the name.
        /// </summary>
        /// <value> The name. </value>
        [MaxLength(256)]
        [Required(AllowEmptyStrings = false)]
        public string Name { get; set; }

        public virtual IList<User> Users { get; set; }

        #endregion
    }
}